// Api集中管理
const { http } = uni.$u

// 小程序通用的接口
export const wxLogin = code => http.get('/wxLogin/' + code)
export const wxGetUserInfo = params => http.post('/wxGetUserInfo', params)
export const wxGetPhoneNumber = (params, config = {}) =>
  http.post('/wxGetPhoneNumber', params, (config = {}))



// app接口

// 注册
export const loginRegApi = (params, config = {}) =>
  http.post('login/reg', params, (config = {}))